package com.acknight.controller;

import com.acknight.dto.Result;
import com.acknight.service.NoticeService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/notice")
@CrossOrigin
public class NoticeController {

    @Resource
    private NoticeService noticeService;

    @GetMapping
    public Result getNotice() {
        return noticeService.getNotice();
    }
}
